<%@ page import="bog.Question" %>



<div class="fieldcontain ${hasErrors(bean: questionInstance, field: 'title', 'error')} required">
	<label for="title">
		<g:message code="question.title.label" default="Title" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField class="input-block-level" name="title" required="" value="${questionInstance?.title}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: questionInstance, field: 'content', 'error')} required">
	<label for="content">
		<g:message code="question.content.label" default="Content" />
		<span class="required-indicator">*</span>
	</label>
	<g:textArea rows="12" cols="50" class="input-block-level" name="content" required="" value="${questionInstance?.content}"/>
</div>

%{--<div class="fieldcontain ${hasErrors(bean: questionInstance, field: 'creationDate', 'error')} required">--}%
	%{--<label for="creationDate">--}%
		%{--<g:message code="question.creationDate.label" default="Creation Date" />--}%
		%{--<span class="required-indicator">*</span>--}%
	%{--</label>--}%
	%{--<g:datePicker name="creationDate" precision="day"  value="${questionInstance?.creationDate}"  />--}%
%{--</div>--}%

%{--<div class="fieldcontain ${hasErrors(bean: questionInstance, field: 'downVoters', 'error')} ">--}%
	%{--<label for="downVoters">--}%
		%{--<g:message code="question.downVoters.label" default="Down Voters" />--}%
		%{----}%
	%{--</label>--}%
	%{----}%
%{--</div>--}%

%{--<div class="fieldcontain ${hasErrors(bean: questionInstance, field: 'owner', 'error')} required">--}%
	%{--<label for="owner">--}%
		%{--<g:message code="question.owner.label" default="Owner" />--}%
		%{--<span class="required-indicator">*</span>--}%
	%{--</label>--}%
	%{--<g:select id="owner" name="owner.id" from="${bog.User.list()}" optionKey="id" required="" value="${questionInstance?.owner?.id}" class="many-to-one"/>--}%
%{--</div>--}%

%{--<div class="fieldcontain ${hasErrors(bean: questionInstance, field: 'points', 'error')} required">--}%
	%{--<label for="points">--}%
		%{--<g:message code="question.points.label" default="Points" />--}%
		%{--<span class="required-indicator">*</span>--}%
	%{--</label>--}%
	%{--<g:field name="points" type="number" value="${questionInstance.points}" required=""/>--}%
%{--</div>--}%

%{--<div class="fieldcontain ${hasErrors(bean: questionInstance, field: 'thread', 'error')} required">--}%
	%{--<label for="thread">--}%
		%{--<g:message code="question.thread.label" default="Thread" />--}%
		%{--<span class="required-indicator">*</span>--}%
	%{--</label>--}%
	%{--<g:select id="thread" name="thread.id" from="${bog.Thread.list()}" optionKey="id" required="" value="${questionInstance?.thread?.id}" class="many-to-one"/>--}%
%{--</div>--}%

%{--<div class="fieldcontain ${hasErrors(bean: questionInstance, field: 'upVoters', 'error')} ">--}%
	%{--<label for="upVoters">--}%
		%{--<g:message code="question.upVoters.label" default="Up Voters" />--}%
		%{----}%
	%{--</label>--}%
	%{----}%
%{--</div>--}%

